<script setup>
import { getUserInfo} from '@/api/login'

/**
 * 查询用户信息
 */
const login = async () => {
  const res = await getUserInfo()
  if (res.code == '200') {
    res.meta.sysUserId = 
    res.meta.acctId
    res.meta.commonRegionId = res.meta.regionId
    sessionStorage.setItem('crm3-userinfo', JSON.stringify(res.meta))
  }
}
login()
</script>

<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<style scoped lang="scss">
#app {
  padding: 0 0.12rem;
  box-sizing: border-box;
}
</style>
